<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新角色</title>
<style type="text/css">
	body{
		text-align: center;
	}
	table thead{
		background-color: #AAD4FF;
	}
	table tbody{
		background-color: #E1E1E1;
	}
	table tfoot {
	background-color: #FAD0FA;
}
table tfoot input{
	background-color: #2AA9FE;
	margin-left: 20px;
	cursor: pointer;
}
</style>
</head>
<body>
<s:form namespace="/control/mapping" action="power_addRoles">
	<table>
		<thead>
			<tr>
				<td colspan="5" style="text-align: center;">添加新角色</td>
			</tr>
		</thead>
		<tbody>
			<tr>
			<s:iterator value="roles" var="roles_list" status="st">
				<td><input type="checkbox" name="roleid" value="${roles_list.id }"/>${roles_list.name }</td>
				<s:if test="#st.count%5==0">
					</tr><tr>
				</s:if>
			</s:iterator>
			</tr>
		</tbody>
		<tfoot>
			<tr>
				<td colspan="5"><input type="submit" value="&nbsp;确&nbsp;定&nbsp;"/><input type="reset" value="&nbsp;取&nbsp;消&nbsp;"/></td>
			</tr>
		</tfoot>
	</table>
</s:form>
</body>
</html>